cmake_minimum_required(VERSION 3.14)
project(vehicle_msgs)

find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)

find_package(rosidl_default_generators REQUIRED)

# Message files
rosidl_generate_interfaces(${PROJECT_NAME}
  "msg/ArenaInfo.msg"
  "msg/ArenaInfoStatic.msg"
  "msg/ArenaInfoDynamic.msg"
  "msg/BicycleKinematicsControl.msg"
  "msg/Circle.msg"
  "msg/CircleObstacle.msg"
  "msg/ControlSignal.msg"
  "msg/DoubleIntegratorKinematicsControl.msg"
  "msg/FreeState.msg"
  "msg/Lane.msg"
  "msg/LaneNet.msg"
  "msg/MotionControl.msg"
  "msg/ObstacleSet.msg"
  "msg/OccupancyGridFloat.msg"
  "msg/OccupancyGridUInt8.msg"
  "msg/PolygonObstacle.msg"
  "msg/State.msg"
  "msg/Vehicle.msg"
  "msg/VehicleParam.msg"
  "msg/VehicleSet.msg"
  DEPENDENCIES
    builtin_interfaces
    std_msgs
    geometry_msgs
    sensor_msgs
)

# Install custom header files (encode/decode) to include/vehicle_msgs/
install(
  DIRECTORY include/vehicle_msgs/
  DESTINATION include/vehicle_msgs
)

# Install generated message headers to include/vehicle_msgs/msg/
#install(
#  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/rosidl_generator_cpp/vehicle_msgs/msg/
#  DESTINATION include/vehicle_msgs
#)

ament_package()